﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master.Master" CodeBehind="FIM_Payrolls.aspx.cs" Inherits="KPIS.GERP.GFMS.APP.App_UI.Forms.FIM_Payrolls" EnableEventValidation="false" %>

<%@ Register Src="../UserControls/DatePicker.ascx" TagName="DatePicker" TagPrefix="uc1" %>

<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="head">
    <link href="../CssClass.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="../Scripts/Common.js" type="text/jscript"></script>
    <script language="JavaScript" src="../Scripts/DatePicker.js" type="text/jscript"></script>
    <title>เงินเดือน/ค่าจ้างประจำเดือน</title>

    <style type="text/css">
        /*.divLeft {
            float: left;
            width: 30%;
            text-align: right;
        }

        .divRight {
            float: right;
            width: 70%;
            text-align: right;
        }

        .float-top {
            text-align: left;
            padding: 10px;
        }

        .border-bottom {
            border-bottom: 1px solid #bababa;
        }

        .bottom {
            position: fixed;
            bottom: 10px;
            padding: 10px;
            right: 0px;
        }*/
        .rgDataDiv {
            height: auto !important;
        }
    </style>
</asp:Content>
<asp:Content ID="Content1" runat="server"
    ContentPlaceHolderID="ContentPlaceHolder1">
    <telerik:RadScriptBlock runat="server" ID="scriptBlock">
        <script type="text/javascript">
            function closeRadWindow(sender, args) {
                $find("<%= RadAjaxManager1.ClientID%>").ajaxRequest();
            }

            function openEdit() {
                $find("<%= windowEdit.ClientID%>").show();

            }

            function closeEdit() {
                $find("<%= windowEdit.ClientID%>").close();

            }
        </script>
    </telerik:RadScriptBlock>

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Metro">
        <Windows>
            <telerik:RadWindow
                ID="windowEdit"
                runat="server"
                ShowContentDuringLoad="false"
                VisibleStatusbar="false"
                Title="เงินเดือน/ค่าจ้าง"
                Width="950px"
                Height="600px"
                Modal="true"
                VisibleTitlebar="true"
                OnClientClose="closeRadWindow">
                <ContentTemplate>
                    <div id="divPopup" runat="server">
                        <%--<div class="float-top border-bottom">
                            
                        </div>--%>
                        <div style="padding-top: 7px">
                            <table style="text-align: left; width: 100%">
                                <tr>
                                    <td rowspan="3" width="130px">
                                        <img id="imgInfoEmp" runat="server" style="border-radius: 50%; -webkit-border-radius: 50%; -moz-border-radius: 50%; width: 100px; height: 100px;" />
                                    </td>
                                    <td style="vertical-align: bottom; font-size: 30px" colspan="4">
                                        <asp:Label ID="lblEmpSeq" runat="server" Visible="false" />
                                        <asp:Label ID="lblEmpName" runat="server" Style="color: #3e4ad7" />
                                        <telerik:RadComboBox ID="ddlEmpSeq" runat="server" AutoPostBack="true"
                                            DataTextField="emp_name" DataValueField="emp_seq" EmptyMessage=".. เลือกรายการ .."
                                            OnSelectedIndexChanged="ddlEmpSeq_SelectedIndexChanged"
                                            Width="85%" Filter="Contains" ZIndex="8001">
                                        </telerik:RadComboBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>ตำแหน่ง
                                    </td>
                                    <td>
                                        <asp:Label ID="lblPosName" runat="server" Style="color: #3e4ad7"></asp:Label>
                                    </td>
                                    <td>ระดับ
                                    </td>
                                    <td>
                                        <asp:Label ID="lblClassName" runat="server" Style="color: #3e4ad7"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>สังกัด
                                    </td>
                                    <td colspan="3">
                                        <asp:Label ID="lblJobsiteName" runat="server" Style="color: #3e4ad7"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <br />
                        <div class="LayoutWidth">
                            <table width="100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="50%" style="border-right: 1px solid #bababa" valign="top">
                                        <div style="font-size: 16px; color: #3e4ad7;">
                                            เงินได้
                                        </div>
                                        <telerik:RadGrid ID="grdIncome" runat="server" AutoGenerateColumns="false"
                                            AllowPaging="false" AllowSorting="false" ShowHeader="false" ShowFooter="false"
                                            GroupingSettings-GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;"
                                            GroupingSettings-GroupContinuedFormatString=""
                                            GroupingSettings-GroupContinuesFormatString=""
                                            GroupingSettings-GroupSplitFormat=""
                                            Width="100%" Height="250px" EnableEmbeddedSkins="false" EnableAjaxSkinRendering="false">
                                            <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1"
                                                NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                                                <Columns>
                                                    <telerik:GridBoundColumn DataField="pay_dtls_seq" UniqueName="pay_dtls_seq" Visible="false"></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="pay_seq" UniqueName="pay_seq" Visible="false"></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="emp_seq" UniqueName="emp_seq" Visible="false"></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="ext_seq" UniqueName="ext_seq" Visible="false"></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="edit_system" UniqueName="edit_system" Visible="false"></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="ext_flag" UniqueName="ext_flag" Visible="false"></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="cmd_type_seq" UniqueName="cmd_type_seq" Visible="false"></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn
                                                        DataField="ext_code" HeaderText=""
                                                        ShowFilterIcon="false"
                                                        FilterControlWidth="100%"
                                                        CurrentFilterFunction="Contains"
                                                        AutoPostBackOnFilter="true"
                                                        HeaderStyle-HorizontalAlign="Center"
                                                        ItemStyle-HorizontalAlign="left"
                                                        UniqueName="ext_code">
                                                        <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn
                                                        DataField="ext_name" HeaderText=""
                                                        ShowFilterIcon="false"
                                                        FilterControlWidth="100%"
                                                        CurrentFilterFunction="Contains"
                                                        AutoPostBackOnFilter="true"
                                                        HeaderStyle-HorizontalAlign="Center"
                                                        ItemStyle-HorizontalAlign="left"
                                                        UniqueName="ext_name">
                                                    </telerik:GridBoundColumn>

                                                    <telerik:GridTemplateColumn
                                                        HeaderText=""
                                                        DataField="amount"
                                                        UniqueName="amount"
                                                        FilterControlWidth="100%"
                                                        AutoPostBackOnFilter="true"
                                                        CurrentFilterFunction="Contains"
                                                        ShowFilterIcon="False">
                                                        <ItemTemplate>
                                                            <telerik:RadNumericTextBox ID="txtAmount" runat="server" Width="100px" MinValue="0">
                                                                <NumberFormat />
                                                            </telerik:RadNumericTextBox>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                        <ItemStyle HorizontalAlign="Left" />
                                                    </telerik:GridTemplateColumn>
                                                </Columns>
                                            </MasterTableView>
                                            <ClientSettings EnableRowHoverStyle="True">
                                                <Selecting AllowRowSelect="false" EnableDragToSelectRows="false" />
                                                <Scrolling AllowScroll="True" UseStaticHeaders="true" />
                                            </ClientSettings>
                                        </telerik:RadGrid>
                                    </td>
                                    <td width="50%" valign="top">
                                        <div style="font-size: 16px; color: #3e4ad7;">
                                            เงินหัก
                                        </div>
                                        <telerik:RadGrid ID="grdDeduct" runat="server" AutoGenerateColumns="false"
                                            AllowPaging="false" AllowSorting="false" ShowHeader="false" ShowFooter="false"
                                            GroupingSettings-GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;"
                                            GroupingSettings-GroupContinuedFormatString=""
                                            GroupingSettings-GroupContinuesFormatString=""
                                            GroupingSettings-GroupSplitFormat=""
                                            Width="100%" Height="250px" EnableEmbeddedSkins="false" EnableAjaxSkinRendering="false">
                                            <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1"
                                                NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                                                <Columns>
                                                    <telerik:GridBoundColumn DataField="pay_dtls_seq" UniqueName="pay_dtls_seq" Visible="false"></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="pay_seq" UniqueName="pay_seq" Visible="false"></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="emp_seq" UniqueName="emp_seq" Visible="false"></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="ext_seq" UniqueName="ext_seq" Visible="false"></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="edit_system" UniqueName="edit_system" Visible="false"></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="ext_flag" UniqueName="ext_flag" Visible="false"></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="cmd_type_seq" UniqueName="cmd_type_seq" Visible="false"></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn
                                                        DataField="ext_code" HeaderText=""
                                                        ShowFilterIcon="false"
                                                        FilterControlWidth="100%"
                                                        CurrentFilterFunction="Contains"
                                                        AutoPostBackOnFilter="true"
                                                        HeaderStyle-HorizontalAlign="Center"
                                                        ItemStyle-HorizontalAlign="left"
                                                        UniqueName="ext_code">
                                                        <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn
                                                        DataField="ext_name" HeaderText=""
                                                        ShowFilterIcon="false"
                                                        FilterControlWidth="100%"
                                                        CurrentFilterFunction="Contains"
                                                        AutoPostBackOnFilter="true"
                                                        HeaderStyle-HorizontalAlign="Center"
                                                        ItemStyle-HorizontalAlign="left"
                                                        UniqueName="ext_name">
                                                    </telerik:GridBoundColumn>

                                                    <telerik:GridTemplateColumn
                                                        HeaderText=""
                                                        DataField="amount"
                                                        UniqueName="amount"
                                                        FilterControlWidth="100%"
                                                        AutoPostBackOnFilter="true"
                                                        CurrentFilterFunction="Contains"
                                                        ShowFilterIcon="False">
                                                        <ItemTemplate>
                                                            <telerik:RadNumericTextBox ID="txtAmount" runat="server" Width="100px" MinValue="0">
                                                                <NumberFormat />
                                                            </telerik:RadNumericTextBox>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                        <ItemStyle HorizontalAlign="Left" />
                                                    </telerik:GridTemplateColumn>
                                                </Columns>
                                            </MasterTableView>
                                            <ClientSettings EnableRowHoverStyle="True">
                                                <Selecting AllowRowSelect="false" EnableDragToSelectRows="false" />
                                                <Scrolling AllowScroll="True" UseStaticHeaders="true" />
                                            </ClientSettings>
                                        </telerik:RadGrid>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="bottom">
                            <table width="100%" cellpadding="5px">
                                <tr>
                                    <td align="right">รวมเงินได้
                                    </td>
                                    <td width="120px" align="right">
                                        <asp:Label ID="lblIncome" runat="server" Style="color: #3e4ad7"></asp:Label>
                                    </td>
                                    <td width="50px" align="left">บาท
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">รวมเงินหัก
                                    </td>
                                    <td width="120px" align="right" style="border-bottom: 1px solid #3e4ad7">
                                        <asp:Label ID="lblDeduct" runat="server" Style="color: red"></asp:Label>
                                    </td>
                                    <td width="50px" align="left">บาท
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">สุทธิ
                                    </td>
                                    <td width="120px" align="right" style="border-bottom: 3px double #3e4ad7">
                                        <asp:Label ID="lblNet" runat="server" Style="color: #3e4ad7"></asp:Label>
                                    </td>
                                    <td width="50px" align="left">บาท
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td align="right"></td>
                                    <td align="left" colspan="2">
                                        <asp:LinkButton ID="cmdCalculate" runat="server" CssClass="LinkButton" OnClick="cmdCalculate_Click">
                                            <img alt="" id="img5" runat="server" height="14" src="~/App_UI/Images/Buttons/Calculator-icon.png" />
                                            คำนวน
                                        </asp:LinkButton>
                                        <asp:LinkButton ID="cmdInsert" runat="server" CssClass="LinkButton" OnClick="cmdInsert_Click" Visible="false" UseSubmitBehavior="false">
                                            <img alt="" id="img2" runat="server" height="14" src="~/App_UI/Images/Buttons/saveDisk.gif" />
                                            บันทึก
                                        </asp:LinkButton>
                                        <asp:LinkButton ID="cmdUpdate" runat="server" CssClass="LinkButton" OnClick="cmdUpdate_Click" Visible="false" UseSubmitBehavior="false">
                                            <img alt="" id="img4" runat="server" height="14" src="~/App_UI/Images/Buttons/saveDisk.gif" />
                                            บันทึก
                                        </asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:LinkButton ID="cmdDelete" runat="server" CssClass="LinkButton" OnClick="cmdDelete_Click" Visible="false" UseSubmitBehavior="false">
                                            <img alt="" id="img3" runat="server" height="14" src="~/App_UI/Images/Buttons/Delete.gif" />
                                            ลบรายการ
                                        </asp:LinkButton>
                                    </td>
                                    <td width="50px" align="left"></td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </ContentTemplate>
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="divView">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="divView" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="grdView" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="divPopup">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="divPopup" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="grdView" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <br />
    <div class="TextHeader">
        เงินเดือน/ค่าจ้างประจำเดือน
        <asp:Label ID="lblPaySeq" runat="server" Visible="false"></asp:Label>
    </div>
    <br />
    <div id="divView" runat="server">

        <table>
            <tr>
                <td style="width: 150px">ประเภทบุคลากร :
                </td>
                <td colspan="3">
                    <telerik:RadComboBox ID="ddlEmpTypeSeq" runat="server"
                        AllowCustomText="false"
                        AutoPostBack="true"
                        DataTextField="emp_type_name"
                        DataValueField="emp_type_seq"
                        Filter="Contains"
                        OnSelectedIndexChanged="ddlEmpTypeSeq_SelectedIndexChanged"
                        Skin="Metro">
                    </telerik:RadComboBox>
                </td>
            </tr>
            <tr>
                <td style="width: 150px">ประจำปี :
                </td>
                <td style="width: 250px">
                    <telerik:RadNumericTextBox ID="txtYear" runat="server" AutoPostBack="true"
                        NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator="" NumberFormat-GroupSizes="4" MaxLength="4"
                        OnTextChanged="txtYear_TextChanged" Skin="Metro">
                    </telerik:RadNumericTextBox>
                </td>
                <td style="width: 100px">ประจำเดือน :
                </td>
                <td>
                    <telerik:RadComboBox ID="ddlMonth" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlMonth_SelectedIndexChanged"
                        Filter="Contains" Skin="Metro">
                        <Items>
                            <telerik:RadComboBoxItem Text="มกราคม" Value="1" />
                            <telerik:RadComboBoxItem Text="กุมภาพันธ์" Value="2" />
                            <telerik:RadComboBoxItem Text="มีนาคม" Value="3" />
                            <telerik:RadComboBoxItem Text="เมษายน" Value="4" />
                            <telerik:RadComboBoxItem Text="พฤษภาคม" Value="5" />
                            <telerik:RadComboBoxItem Text="มิถุนายน" Value="6" />
                            <telerik:RadComboBoxItem Text="กรกฎาคม" Value="7" />
                            <telerik:RadComboBoxItem Text="สิงหาคม" Value="8" />
                            <telerik:RadComboBoxItem Text="กันยายน" Value="9" />
                            <telerik:RadComboBoxItem Text="ตุลาคม" Value="10" />
                            <telerik:RadComboBoxItem Text="พฤศจิกายน" Value="11" />
                            <telerik:RadComboBoxItem Text="ธันวาคม" Value="12" />
                        </Items>
                    </telerik:RadComboBox>
                </td>
            </tr>
        </table>
        <br />
        <div style="text-align: center">
            <telerik:RadButton ID="cmdCopy" runat="server" Text="คัดลอกข้อมูลจากเดือนที่แล้ว" OnClick="cmdCopy_Click" Skin="Metro" UseSubmitBehavior="false" />
        </div>
        <br />
        <div>
            <asp:LinkButton ID="cmdAddNew" runat="server" CssClass="LinkButton" OnClientClick="openEdit()" OnClick="cmdAddNew_Click" UseSubmitBehavior="false">
                <img alt="" id="imgAddNew" runat="server" height="14" src="~/App_UI/Images/Buttons/AddRecord.gif" />
                เพิ่มข้อมูลใหม่
            </asp:LinkButton>&nbsp;&nbsp;|&nbsp;&nbsp;
            <asp:LinkButton ID="cmdAddNewAll" runat="server" CssClass="LinkButton" OnClick="cmdAddNewAll_Click" UseSubmitBehavior="false">
                <img alt="" id="img1" runat="server" height="14" src="~/App_UI/Images/Buttons/AddRecord.gif" />
                ตั้งต้นข้อมูลใหม่ทั้งหมดจากทะเบียนประวัติ
            </asp:LinkButton>
        </div>
        
    </div>
        <br />
    <div class="export">
            <telerik:RadComboBox ID="ddlReport" CssClass="reportwidthFull" runat="server"
                AllowCustomText="false"
                Filter="Contains"
                Skin="Metro">
                <Items>
                    <telerik:RadComboBoxItem Text="สรุปรายละเอียดการจ่ายเงินเดือนจำแนกตามรหัสบัญชีงบประมาณ" Value="Payroll01" />
                    <telerik:RadComboBoxItem Text="หลักฐานการจ่ายเงินผ่านธนาคารพาณิชย์ (เบิกจ่ายเงินเดือน)" Value="Payroll02" />
                    <telerik:RadComboBoxItem Text="รายละเอียดข้อมูลการนำเข้า กบข. (เบิกจ่ายเงินเดือน)" Value="Payroll03" />
                </Items>
            </telerik:RadComboBox>
            <asp:LinkButton ID="LinkButton1" runat="server" CssClass="LinkButton" OnClick="LinkButton1_Click" UseSubmitBehavior="false">
                <img alt="" id="img7" runat="server" height="14" src="~/App_UI/Images/Buttons/Print1.gif" />
                EXPORT
            </asp:LinkButton>
        </div>
    <br />
        <telerik:RadGrid ID="grdView" runat="server"
            AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="true"
            AutoGenerateColumns="False"
            GroupingSettings-GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;"
            GroupingSettings-GroupContinuedFormatString=""
            GroupingSettings-GroupContinuesFormatString=""
            GroupingSettings-GroupSplitFormat=""
            OnItemCommand="grdView_ItemCommand"
            Skin="Metro"
            Width="998px">
            <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1"
                NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                <%--<CommandItemSettings ExportToPdfText="Export to PDF" />--%>
                <Columns>
                    <telerik:GridBoundColumn
                        DataField="pay_seq"
                        UniqueName="pay_seq"
                        Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn
                        DataField="emp_seq"
                        UniqueName="emp_seq"
                        Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn
                        DataField="pos_ref" HeaderText="เลขตำแหน่ง"
                        ShowFilterIcon="false"
                        FilterControlWidth="100%"
                        CurrentFilterFunction="Contains"
                        AutoPostBackOnFilter="true"
                        HeaderStyle-HorizontalAlign="Center"
                        HeaderStyle-Width="50px"
                        ItemStyle-HorizontalAlign="Center"
                        UniqueName="pos_ref">
                    </telerik:GridBoundColumn>

                    <telerik:GridTemplateColumn
                        HeaderText="ชื่อ-สกุล"
                        DataField="emp_name"
                        FilterControlWidth="100%"
                        AutoPostBackOnFilter="true"
                        CurrentFilterFunction="Contains"
                        ShowFilterIcon="False">
                        <ItemTemplate>
                            <asp:LinkButton ID="cmdEdit" runat="server" CommandName="GridEdit" Style="color: blue" OnClientClick="openEdit()"><%# Eval("emp_name")%></asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridTemplateColumn>

                    <telerik:GridBoundColumn DataField="pos_name" HeaderText="ตำแหน่ง"
                        ShowFilterIcon="false"
                        FilterControlWidth="100%"
                        CurrentFilterFunction="Contains"
                        AutoPostBackOnFilter="true"
                        UniqueName="pos_name">
                        <HeaderStyle Wrap="False" HorizontalAlign="Center" Width="180px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="job_site_name" HeaderText="สังกัด"
                        ShowFilterIcon="false"
                        FilterControlWidth="100%"
                        CurrentFilterFunction="Contains"
                        AutoPostBackOnFilter="true"
                        UniqueName="job_site_name">
                        <HeaderStyle Wrap="False" HorizontalAlign="Center" Width="180px" />
                    </telerik:GridBoundColumn>

                    <%--<telerik:GridBoundColumn DataField="class_name"
                        HeaderText="ระดับ"
                        ShowFilterIcon="false"
                        FilterControlWidth="100%"
                        CurrentFilterFunction="Contains"
                        AutoPostBackOnFilter="true"
                        UniqueName="class_name">
                        <FooterStyle HorizontalAlign="Right" />
                        <HeaderStyle HorizontalAlign="Center" Width="100px" />
                    </telerik:GridBoundColumn>--%>
                    <telerik:GridBoundColumn
                        DataField="salary" HeaderText="เงินเดือน"
                        ShowFilterIcon="false"
                        FilterControlWidth="100%"
                        CurrentFilterFunction="Contains"
                        AutoPostBackOnFilter="true"
                        HeaderStyle-HorizontalAlign="Center"
                        HeaderStyle-Width="80px"
                        ItemStyle-HorizontalAlign="right"
                        UniqueName="salary" DataFormatString="{0:N2}"
                        AllowFiltering="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="เงินได้อื่น"
                        DataField="sum_ext"
                        ShowFilterIcon="false"
                        FilterControlWidth="100%"
                        CurrentFilterFunction="Contains"
                        AutoPostBackOnFilter="true"
                        HeaderStyle-HorizontalAlign="Center"
                        HeaderStyle-Width="80px"
                        ItemStyle-HorizontalAlign="right"
                        UniqueName="sum_ext" DataFormatString="{0:N2}"
                        AllowFiltering="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="รวมเงินได้"
                        DataField="income"
                        HeaderStyle-HorizontalAlign="Center"
                        HeaderStyle-Width="80px"
                        ItemStyle-HorizontalAlign="right"
                        ShowFilterIcon="false"
                        FilterControlWidth="100%"
                        CurrentFilterFunction="Contains"
                        AutoPostBackOnFilter="true"
                        UniqueName="income"
                        DataFormatString="{0:N2}"
                        AllowFiltering="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="รวมเงินหัก"
                        DataField="deduct"
                        HeaderStyle-HorizontalAlign="Center"
                        HeaderStyle-Width="80px"
                        ItemStyle-HorizontalAlign="right"
                        ShowFilterIcon="false"
                        FilterControlWidth="100%"
                        CurrentFilterFunction="Contains"
                        AutoPostBackOnFilter="true"
                        UniqueName="deduct"
                        DataFormatString="{0:N2}"
                        AllowFiltering="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="เงินได้สุทธิ"
                        DataField="net"
                        HeaderStyle-HorizontalAlign="Center"
                        HeaderStyle-Width="80px"
                        ItemStyle-HorizontalAlign="right"
                        ShowFilterIcon="false"
                        FilterControlWidth="100%"
                        CurrentFilterFunction="Contains"
                        AutoPostBackOnFilter="true"
                        UniqueName="net"
                        DataFormatString="{0:N2}"
                        AllowFiltering="false">
                    </telerik:GridBoundColumn>
                </Columns>
                <PagerStyle Mode="NextPrevNumericAndAdvanced" />
            </MasterTableView>
            <ClientSettings EnableRowHoverStyle="True">
                <Selecting AllowRowSelect="false" EnableDragToSelectRows="false" />
                <Scrolling AllowScroll="True" UseStaticHeaders="true" />
            </ClientSettings>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
        </telerik:RadGrid>
</asp:Content>
